﻿package com.fendou.virtualphone.db;

import java.util.List;

import com.fendou.virtualphone.bean.CallBeanInfo;

public interface CallPhoneHistoryDao {

	/**
	 * 保存来电历史记录
	 * 
	 * @param uid
	 * @param callInfos
	 */
	public void saveCallBean(String uid, CallBeanInfo callInfos);

	/**
	 * 查询所有来电
	 * 
	 * @param uid
	 * @return
	 */
	public List<CallBeanInfo> getCallBeanInfos(Object uid);

	/**
	 * 更新一条来电状态
	 * 
	 * @author wubo
	 * @createtime 2012-9-10
	 * @param myuid
	 * @param himuid
	 */
	public void updateCallHistoryStatus(CallBeanInfo callinfo);

	/**
	 * 删除一条来电
	 * 
	 * @param id
	 */
	public boolean deleteById(Long id);

	List<CallBeanInfo> getCallBeanInfos(String callType);
	
	
	/**
	 * 从数据库中查找当前的打电话的记录
	 * @return 
	 * 
	 */
	public CallBeanInfo findCurrentCallBean();
}

